add disaster-recovery component#10686
add disaster-recovery component#10686filariow wants to merge 4 commits intoredhat-appstudio:mainfrom
Conversation
Signed-off-by: Francesco Ilario <filario@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
use tekton's eventlistener and trigger plus a cronjob to execute a pipeline every hour cf. https://github.com/tektoncd/triggers/tree/main/examples/v1beta1/cron Signed-off-by: Francesco Ilario <filario@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: filariow The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
🤖 Gemini AI Assistant AvailableHi @filariow! I'm here to help with your pull request. You can interact with me using the following commands: Available Commands
How to Use
PermissionsOnly OWNER, MEMBER, or COLLABORATOR users can trigger my responses. This ensures secure and appropriate usage. This message was automatically added to help you get started with the Gemini AI assistant. Feel free to delete this comment if you don't need assistance. |
|
🤖 Hi @filariow, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
|
Hey @filariow, so adding disaster recovery to the development overlay is for the e2e-tests. In the e2e-tests, the backup and recovery are all done programmatically through Ginkgo code - it just needs the infrastructure to be available (MinIO + OADP sitting there, ready) not an automatic DR action. What e2e-tests needs for the DR effort is just to have a |
what this PR adds is not to be used in the development overlay, it's meant for staging. In development we just want to test changes to its manifests are sound before they are promoted to staging. In the e2e-tests executed in the development overlay we can also suspend the cronjob. In staging it will be used to execute the test periodically.
That's because for the scope of this PR we want to target dev only, not to all labeled clusters. |
Signed-off-by: Francesco Ilario <filario@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
Kustomize Render DiffComparing
Total: 20 components, +798 -38 lines 📋 Full diff available in the workflow summary and as a downloadable artifact. |
Signed-off-by: Francesco Ilario <filario@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
By what test? The test suites for e2e-tests might be disrupted by the cron job being triggered every hour and, it definitely will need to be suspended in the ITSes planned. Do you plan on something else? |
just by the fact that ArgoCD can install them successfully and proceed running the e2e-tests. In the development overlay we can patch the cronjob to do not execute ( |
|
@filariow |
| name: run-disaster-recovery-pipelinerun | ||
| namespace: konflux-disaster-recovery | ||
| spec: | ||
| schedule: "0 * * * *" # every hour |
There was a problem hiding this comment.
@filariow Don't we want to run it daily ? Every hour is too frequent.
There was a problem hiding this comment.
yeah, I agree it could be too frequent for the real use case. However, right now this targets the development overlay only and it executes a dummy pipeline. Let's agree on the right schedule when we target staging.
This only affects the development overlay